<?php
namespace BP\Sys;

use BP\En\EntitiesMyPK;

class FrmReportFields extends EntitiesMyPK {
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($fk_mapdata) // [String fk_mapdata]
	{
		$me = new self();
		if (SystemConfig::getIsDebug())
		{
			$me->Retrieve(FrmReportFieldAttr::$FK_MapData, $fk_mapdata);
		}
		else
		{
			$me->RetrieveFromCash(FrmReportFieldAttr::$FK_MapData, $fk_mapdata);
		}
		return $me;
	}
	public function getNewEntity () 
	{
		return FrmReportField::constructor__();
	}
	public function ToJavaList () 
	{
		return $this;
	}
	public function Tolist () 
	{
		$list = [];// 
		for ($i = 0; ($i < $this->size()); ++$i) 
		{
			$list->add($this->get($i));
		}
		return $list;
	}
}
?>
